package cn.jeefast.rest.controller;


import cn.jeefast.common.entity.MbResearchStepDataTemplateAnotherIndicators;
import cn.jeefast.common.entity.MbResearchStrpDataTemplate;
import cn.jeefast.common.utils.R;
import cn.jeefast.rest.service.MbResearchStepDataTemplateAnotherIndicatorsService;
import cn.jeefast.rest.service.MbResearchStrpDataTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.xml.ws.soap.Addressing;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author theodo
 * @since 2019-12-30
 */
@RestController
@RequestMapping("/api")
public class MbResearchStrpDataTemplateController {

    @Autowired
    private MbResearchStrpDataTemplateService mbResearchStrpDataTemplateService;

    /**
     * 获取模板详情（根据模板ID）
     * @param tempId
     * @return
     */
    @RequestMapping("/template/detail")
    public R templateDeatilByTempId(Long tempId){
        return  mbResearchStrpDataTemplateService.templateDeatilByTempId(tempId);
    }
}
